//
//  GolfGamePlayer.m
//  Golf
//
//  Created by mrbradle on 10/26/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "GolfGamePlayer.h"

#import "Card.h"

@implementation GolfGamePlayer

@synthesize cards,name,score;
//@synthesize name,score;

+ (id)playerName:(NSString*)name_ {
    
    GolfGamePlayer* player = [GolfGamePlayer alloc];
    player.name = name_;
    player.score = 0;
    
    player.cards = (int*)malloc(4*sizeof(int));
    for (int i = 0; i < 4; i++) {
        player.cards[0] = 0;
    }
    
    return player;
}

@end
